package com.aop.aspectJ;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.aop.UserDao;

public class Test2 {
	public static void main(String[] args) {
		String xmlPath = "com/aop/aspectJ/aop2.xml";
		@SuppressWarnings("resource")
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		UserDao userDao1 = (UserDao) applicationContext.getBean("userDao");
		userDao1.addUser();
}
}
